package peste;

import model.HouseModel;

import model.ObjectModel;


import model.RoomModel;


public class Obiect {
	
	public static void getobjects(){
		
	for(int i=0;i<HouseModel.roomList.size();i++){
			RoomModel currentModel=HouseModel.roomList.get(i);
			for(int j=0;j<currentModel.getObjectList().size();j++) {
				ObjectModel current=HouseModel.roomList.get(i).getObjectList().get(j);
				
				// setam uses
				
				if(current.getType().equalsIgnoreCase("Sink") ||
					current.getType().equalsIgnoreCase("Toilet")||
					current.getType().equalsIgnoreCase("Hair_dryer") ||
					current.getType().equalsIgnoreCase("Gas_cooker") ||
					current.getType().equalsIgnoreCase("Refrigerator") ||
					current.getType().equalsIgnoreCase("Vacuum_cleaner")
				)  
				current.setUses(true);
				else current.setUses(false);
				
				//setam turnurile
				
				if(current.getType().equalsIgnoreCase("TV") ||
					current.getType().equalsIgnoreCase("Air_conditioning")||
					current.getType().equalsIgnoreCase("Computer") ||
					current.getType().equalsIgnoreCase("Radioator") ||
					current.getType().equalsIgnoreCase("Light") ||
					current.getType().equalsIgnoreCase("Heating")||
					current.getType().equalsIgnoreCase("Stove") ||
					current.getType().equalsIgnoreCase("Electric_plate") ||
					current.getType().equalsIgnoreCase("Cofee_filter") ||
					current.getType().equalsIgnoreCase("Toaster")||
					current.getType().equalsIgnoreCase("Washing_machine")
					)
					current.setTurns(true);
				else current.setTurns(false);
				
				//set set
				
				if(current.getType().equalsIgnoreCase("Air_conditioning")||
					
					current.getType().equalsIgnoreCase("Radioator") ||
					
					current.getType().equalsIgnoreCase("Heating")||
					current.getType().equalsIgnoreCase("Stove") ||
					current.getType().equalsIgnoreCase("Refrigerator")
					
					)
					current.setSets(true);
				else current.setSets(false);
			}
		}
	}
}